import {
  createRouter,
  createWebHistory
} from 'vue-router';

import IndexPage from '../views/index.vue';

const routes = [{
  path: '/',
  name: 'index',
  component: IndexPage
}, {
  path: '/test',
  name: 'test',
  component: () => import('../views/Test.vue')
}, {
  path: '/result',
  name: 'result',
  component: () => import('../views/Result.vue')
}]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router